package what.the.fun.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import what.the.fun.domain.Survey;;

public class SurveyRowMapper implements RowMapper<Survey>{

	@Override
	public Survey mapRow(ResultSet arg0, int arg1) throws SQLException {
		SurveyExtractor extractor = new SurveyExtractor();
		return extractor.extractData(arg0);
	}

}
